package com.ruoyi.eam.doman;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 资产维修对象 eam_maintain
 *
 * @author xl
 * @date 2024-07-16
 */
public class EamMaintain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long maintainId;

    /** 资产id */
    @Excel(name = "资产id")
    private Long assetId;

    /** 维修单号 */
    @Excel(name = "维修单号")
    private String maintainCode;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Long receiptsStatus;

    /** 报修日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报修日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warrantyDate;

    /** 报修原因 */
    @Excel(name = "报修原因")
    private String cause;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long creator;

    /** 存放位置 */
    @Excel(name = "存放位置")
    private Long locationId;

    /** 审核人 */
    @Excel(name = "审核人")
    private Long auditperson;

    /** 审核原因 */
    @Excel(name = "审核原因")
    private String auditReason;

    /** 审核时间 */
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String auditTime;

    @Excel(name = "审核原因")
    private EamAsset asset;

    private String creatorName;

    private Long isMaintain;

    private Long isdel;

    public Long getIsMaintain() {
        return isMaintain;
    }

    public void setIsMaintain(Long isMaintain) {
        this.isMaintain = isMaintain;
    }

    public Long getIsdel() {
        return isdel;
    }

    public void setIsdel(Long isdel) {
        this.isdel = isdel;
    }

    public EamAsset getAsset() {
        return asset;
    }

    public void setAsset(EamAsset asset) {
        this.asset = asset;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public void setMaintainId(Long maintainId)
    {
        this.maintainId = maintainId;
    }

    public Long getMaintainId()
    {
        return maintainId;
    }
    public void setAssetId(Long assetId)
    {
        this.assetId = assetId;
    }

    public Long getAssetId()
    {
        return assetId;
    }
    public void setMaintainCode(String maintainCode)
    {
        this.maintainCode = maintainCode;
    }

    public String getMaintainCode()
    {
        return maintainCode;
    }
    public void setReceiptsStatus(Long receiptsStatus)
    {
        this.receiptsStatus = receiptsStatus;
    }

    public Long getReceiptsStatus()
    {
        return receiptsStatus;
    }
    public void setWarrantyDate(Date warrantyDate)
    {
        this.warrantyDate = warrantyDate;
    }

    public Date getWarrantyDate()
    {
        return warrantyDate;
    }
    public void setCause(String cause)
    {
        this.cause = cause;
    }

    public String getCause()
    {
        return cause;
    }
    public void setCreator(Long creator)
    {
        this.creator = creator;
    }

    public Long getCreator()
    {
        return creator;
    }
    public void setLocationId(Long locationId)
    {
        this.locationId = locationId;
    }

    public Long getLocationId()
    {
        return locationId;
    }
    public void setAuditperson(Long auditperson)
    {
        this.auditperson = auditperson;
    }

    public Long getAuditperson()
    {
        return auditperson;
    }
    public void setAuditReason(String auditReason)
    {
        this.auditReason = auditReason;
    }

    public String getAuditReason()
    {
        return auditReason;
    }
    public void setAuditTime(String auditTime)
    {
        this.auditTime = auditTime;
    }

    public String getAuditTime()
    {
        return auditTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("maintainId", getMaintainId())
            .append("assetId", getAssetId())
            .append("maintainCode", getMaintainCode())
            .append("receiptsStatus", getReceiptsStatus())
            .append("warrantyDate", getWarrantyDate())
            .append("cause", getCause())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .append("locationId", getLocationId())
            .append("auditperson", getAuditperson())
            .append("auditReason", getAuditReason())
            .append("auditTime", getAuditTime())
            .toString();
    }
}
